.wrap {
  padding-top: $headerH;
}

.top-detail-bg {
  .top-detail {
    position: relative;
    padding: 50px 0;
    color: #fff;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;

    &:after {
      content: '';
      @include bg-element(70%);
      position: absolute;
      z-index: -1;
      top: 20px;
      right: -15%;
      transform: rotateX(180deg);
      opacity: 0.3;
    }
  }

  .logo-area-wrapper {
    width: 30%;
    padding: 57px;
    padding-bottom: 0;
  }
  .logo-area {
    position: relative;
    text-align: center;

    .award-label {
      position: absolute;
      top: 0;
      left: 0;
      transform: translate(-50%, -50%);
      font-weight: bold;
      text-align: center;
      z-index: 10;
    }

    h3 {
      margin: 0;
      font-size: 2.5rem;
      letter-spacing: 10px;
      color: $color-brown;
      font-weight: normal;
    }

    .award-name {
      color: #000;
      background-color: $color-brown;
      font-weight: bold;
    }
  }

  .product-logo {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: hidden;

    .logo {
      position: absolute;
      left: 50%;
      top:50%;
      transform: translate(-50%, -50%);
      z-index: 2;
      width: 120px;
      height: 120px;
      border-radius: 20px;
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
    }

    .angle {
      background-color: $color-brown;
      position: absolute;
      bottom: 30px;
      width: 100%;
      right: 30px;
      line-height: 1.8;
      font-size: 18px;
      color: #fff;
      transform: translateX(50%) translateY(50%) rotate(-45deg);
      z-index: 10;
    }

    &:after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      @include bg-element(100%);
      background-size: auto 100%;
      padding-bottom: 100%;
      opacity: 0.2;
      background-position: center;
      z-index: 1;
    }
  }

  .product-links .btn {
    background-color: $color-brown;
    border-radius: 0;
    color: #fff;
    margin: 5px;
    font-size: 1.2rem;
    padding: 2px 15px;

    &:hover {
      background-color: darken($color-brown, 10%);
    }
  }

  .detail-area {
    width: 70%;
    padding-top: 57px;
    font-size: 1rem;
  }

  .product-name {
    margin-bottom: 15px;

    .title {
      position: relative;
      display: inline-block;
      vertical-align: middle;
      font-size: 1.6rem;
      line-height: 2;

      &:after {
        display: none;
        content: '';
        width: 10px;
        height: 0;
        position: absolute;
        left: 0;
        bottom: 0;
        border-bottom: 2px solid #fff;
      }
    }

    a.vote-btn {
      display: inline-block;
      vertical-align: middle;
      font-size: 1.2rem;
      background-color: $color-brown;
      color: #fff;
      margin-left: 30px;
      padding: 3px 25px;
      letter-spacing: 5px;

      &:hover {
        background-color: #EAB05C;
      }
    }

    a.vote-already {
      background-color: #EAB05C;
    }
  }

  .product-classify {
    margin-bottom: 15px;
    font-size: 1.1rem;
  }

  .product-summary {
    color: $color-brown;
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .product-des {
    color: rgba(255, 255, 255, 0.7);
  }

  .editor-rank {
    $top: 10px;
    position: relative;
    padding-top: $top;
    border-top: 1px dashed #475A85;

    .title {
      position: absolute;
      color: $color-brown;
      left: 0;
      top: $top;
      font-weight: bold;
    }

    .content {
      padding-left: 80px;
    }
  }
}

.product-summary-mobile {
  display: none;
  color: $color-brown;
}

.product-mobile-wrapper {
  display: none;
  color: rgba(255, 255, 255, 0.7);
}

.product-wrapper,
.product-mobile-wrapper {
  .ellipsis {
    opacity: 1;
    transition: opacity 0.5s;
  }

  .other-aside {
    display: none;
  }

  &.show-pucker {
    &.unfold {
      .ellipsis {
        opacity: 0;
      }

      .unfold-btn {
        transform: rotate(180deg);
      }
    }

    .unfold-btn {
      margin-top: 5px;
      position: relative;
      width: 50px;
      height: 25px;
      cursor: pointer;
      // transition: transform 0.3s;

      &:after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border: 7px solid transparent;
        border-top-color: $color-brown;
        border-top-width: 10px;
        border-bottom-width: 10px;
        transform: translate(-50%, -50%);
      }
    }

    .product-des {
      // height: 175px;
      overflow: hidden;
    }

    .other-aside {
      display: flex;
      justify-content: space-between;
    }
  }
}

@media (max-width: 750px) {

  .product-summary-mobile,
  .product-mobile-wrapper {
    display: block;
  }

  .top-detail-bg {

    .product-name {
      line-height: 1.5;
    }

    .top-detail {
      padding-bottom: 10px;
    }

    .logo-area {
      text-align: center;

      h3 {
        font-size: 1.5rem;
      }

      .award-name {
        font-size: 0.8rem;
        width: 125%;
      }

      .award-label {
        transform: translate(-50%, -80%);
      }
    }

    .logo-area-wrapper {
      width: 50%;
      padding: 40px;
    }

    .product-logo {
      overflow: visible;

      .angle {
        font-size: 14px;
        line-height: 1.5;
        width: auto;
        padding: 0 8px;
        transform: translateY(50%) translateX(0) rotate(0);
        bottom: 0;
        right: 0;
      }

      .logo {
        width: 70px;
        height: 70px;
      }

      &:after {
        background-color: #000;
        width: 140%;
        padding-bottom: 140%;
        top: -20%;
        left: -20%;
      }
    }

    .detail-area {
      padding-top: 15px;
    }

    .product-name {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;

      .title {
        margin-bottom: 10px;
        line-height: 1.5;
      }
    }

    .product-name a.vote-btn {
      font-size: 1rem;
      margin: 0;
      padding: 3px 15px;
    }

    .product-summary {
      display: none;
    }

    .product-wrapper {
      display: none;
    }
  }
}
